package com.liangwj.springbootweb.services;

import com.liangwj.springbootweb.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO: UserService接口
 * @author Liangwenjun
 * @date 2018-12-13
 * @version 1.0
 */
public interface IUserService {

    /**新增user*/
    void createUser(User user);

    /**获取所有user*/
    List<User> getAllUser();

    /**根据条件获取单个User*/
    User getUserByCondition(User user);

    /**更新user*/
    void updateUser(User user);

    /**根据ID删除user*/
    void deleteUser(Long id);
}
